#include <iostream>
#include <string>
#include <sys/types.h>
#include <signal.h>

using namespace std;
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        cout << "error" << endl;
        return 1;
    }
    int signum = stoi(argv[1]);
    pid_t id = stoi(argv[2]);
    int n = kill(id, signum);
    if (n == 0)
    {
        std::cout << "send " << signum << " to " << id << " success.";
    }
    return 0;
    return 0;
}